# # -*- coding: utf-8 -*-
# # <nbformat>3.0</nbformat>
#
# # <codecell>
#
# from flask import Flask
# app = Flask('')
#
# @app.route('/')
# def index():
#     return 'hello world\n'
#
# app.run(port=3333)
#
#
# # <codecell>
#
#
# import requests
# c = requests.get('http://www.sina.com.cn').content
# from IPython.display import HTML as HTML_unsafe
# from lxml.html.clean import clean_html
# HTML = lambda x:HTML_unsafe(clean_html(x))
#
# HTML(c)
#
#
# # <codecell>
#
# from scrapy import Selector
# import gevent.monkey
# gevent.monkey.patch_socket()
#
#
# def get_problem(n):
#     try:
#         s = requests.get('http://125.221.232.253/JudgeOnline/problem.php?id='+str(n)).content
#         sel = Selector(text=s)
#         return sel.xpath('//*[@id="main"]/center[1]/h2/text()').extract()[0]
#     except IndexError:
#         return None
# from gevent.pool import Pool
# p  = Pool(10)
# ans = [ p.spawn(get_problem,n) for n in range(1002,1625)]
#
# for i in ans:
#     if i.value:
#         print i.value
#
# # tail -f  /var/log/apache2/other_vhosts_access.log
#
#
#
# # %%latex
# # $$c = \sqrt{a^2 + b^2}$$
#
#
#
# sympy example



for i in range(10):
    print i



